//---------------------------------------------------------------------------

#ifndef xmlwrapperH
#include <vcl.h>
#include <IniFiles.hpp>
#define xmlwrapperH
//---------------------------------------------------------------------------
struct app {
	String name;
	String iconPath;
	String path;
	int x;
	int y;
};

class XMLWrapper
{
	public:
		XMLWrapper();
		XMLWrapper(String, String);
		~XMLWrapper();
		void saveToFile(UnicodeString, UnicodeString);

		void addBackgroundImage(String);
		String getBackgroundImage();
		void addDesktopIcon(String, String, String, int, int);
		app* getDesktopIcons();
		TStringList* iterateDesktopIcon(int);
		void setUser(String, String);
		TStringList* getUser();
		void setScreenResolution(String, float);
		TStringList* getScreenResolution();
		void setPathToApplicationDir(String);
		String getPathToApplicationDir();
		void setScheduleAlign(bool);
		bool isAlignAtSchedule();
		String parseLokalePlaceHolder(String,String , String );
  		void addApplicationsPath(String);
		String getApplicationPath();

		int iconCount;
		bool copyDir(String, String);
	protected:
    	void generateAutorunFile(String);
		String appPath;
		String generateIniFile();
		TMemIniFile  *config;
		TStringList *iconList;
		app icons[100];
		void parseIconFile(String);
		void saveIconFile(String);
		bool initWithoutFile;
		String basePath;
};
#endif
